import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get_navigation/src/nav2/router_outlet.dart';
import 'package:management_system/pages/compents/topMenu.dart';
import '../../router/router.dart';
import '../compents/menuBar.dart';

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
          height: double.infinity,
          width: double.infinity,
          padding: const EdgeInsets.all(20),
          color: const Color(0xFFF4F9FD),
          child: Stack(
            children: [
              HomeMenuBar(),
              Positioned(left: 230.w, right: 0, child: TopMenu()),
              Positioned(
                left: 230.w,
                right: 0,
                top: 117.w,
                bottom: 30,
                child: GetRouterOutlet(
                  initialRoute: RoutePath.home,
                ),
              )
            ],
          )),
    );
  }
}
